#ifndef MESSAGE_H
#define MESSAGE_H

#include <QObject>
#include <QDateTime>
#include "Models/model.h"

enum MsgType {
    None = 0,
    Sender = 1,
    Receive = 2,
};

class Message : public Model
{
public:
    explicit Message();
    explicit Message(QString content, QString time, MsgType msgType);

    void content(QString content);
    QString content();

    void time(QString time);
    QString time();

    void msgType(MsgType msgType);
    MsgType msgType();

private:
    QString _content;
    QString _time;
    MsgType _msgType;
};
Q_DECLARE_METATYPE(Message)
Q_DECLARE_METATYPE(Message*)
#endif // MESSAGE_H
